\newcommand{\footcite}[1]{\footnote{\tiny #1}}
\newcommand{\fdscale}{1.1}
\newcommand{\emp}[1]{\textbf{\red #1}}
\newcommand{\vspc}{\vspace{-5mm}}

\newcommand{\lsti}{\lstinline[basicstyle=\fontsize{10}{12}\selectfont]}
\newcommand{\kw}[1]{\texttt{#1}}



\newcounter{qnum}
\newcounter{qsum}

\newenvironment{question}[1]{\refstepcounter{qnum}\paragraph*{\bf \theqnum.\hspace{1ex}(#1\hspace{2pt}b)}}{}


\newcommand{\bq}[1]{\begin{question}{#1}\label{q\theqnum}
	\addtocounter{qsum}{#1}
	\newcounter{qpts\alph{qnum}}
	\setcounter{qpts\alph{qnum}}{#1}
	}


\newcommand{\eq}{\end{question}}



\newenvironment{answers}{%
	\begin{enumerate}[{(a)}]%
	\setlength{\itemsep}{0pt}%
	\setlength{\parskip}{0pt}}%
	{\end{enumerate}}

\newenvironment{answ}[5]{\begin{tabbing} \textbf{(a)} #1 \= \textbf{(b)} #2 \= \textbf{(c)} #3 \textbf{(d)} #4 \= \textbf{(e)} #5\\}{\end{tabbing}}
\newcommand{\ba}[5]{\begin{answ}{#1}{#2}{#3}{#4}{#5}}
\newcommand{\ea}{\end{answ}}

\newcommand{\qok}{\framebox{\textbf{X}}}
